package com.huage.courseplatform.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huage.courseplatform.application.model.entity.Homework;
import com.huage.courseplatform.application.model.entity.Period;
import com.huage.courseplatform.application.model.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
//@CacheNamespace(implementation= MybatisRedisCache.class,eviction= MybatisRedisCache.class)
public interface HomeworkMapper extends BaseMapper<Homework> {
    Page<Homework> getToDoPageByStudentId(Page<Homework> page,@Param("studentId") String studentId);

    Page<Homework> getDonePageByStudentId(Page<Homework> page,@Param("studentId") String studentId);

}
